﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace SerialPortTest
{
    public enum SerialPortEnum
    {
        [Display(Name = "COM1")]
        com1 = 1,
        [Display(Name = "COM2")]
        com2 = 2,
        [Display(Name = "COM3")]
        com3 = 3,
        [Display(Name = "COM4")]
        com4 = 4,
        [Display(Name = "COM5")]
        com5 = 5,
        [Display(Name = "COM6")]
        com6 = 6,
        [Display(Name = "COM7")]
        com7 = 7,
        [Display(Name = "COM8")]
        com8 = 8,

        max_com_val,
    }
    public enum SerialBoundRate
    {
        [Display(Name = "1200")]
        BR1200 = 1200,
        [Display(Name = "2400")]
        BR2400 = 2400,
        [Display(Name = "4800")]
        BR4800 = 4800,
        [Display(Name = "9600")]
        BR9600 = 9600,
        [Display(Name = "19200")]
        BR19200 = 19200,
        [Display(Name = "38400")]
        BR38400 = 38400,
        [Display(Name = "57600")]
        BR57600 = 57600,
        [Display(Name = "115200")]
        BR115200 = 115200,
    }

    public enum SerialDataBits
    {
        [Display(Name = "8")]
        DB8 = 8,
        [Display(Name = "16")]
        DB16 = 16,
        [Display(Name = "32")]
        DB32 = 32,
    }
}
